const _import = require('@/router/_import_' + process.env.NODE_ENV)
/* Layout */
import Layout from '@/views/layout/Layout'

const System = [{
  path: '/system',
  component: Layout,
  redirect: '/system/index',
  name: 'system',
  meta: { title: '系统管理', icon: 'zip' },
  children: [
    {
      path: 'index',
      component: _import('system/users/index'),
      name: 'users',
      meta: { title: '用户管理' }
    },
    {
      path: 'org',
      component: _import('system/org/index'),
      name: 'org',
      meta: { title: '机构管理' }
    },
    {
      path: 'roles',
      component: _import('system/roles/index'),
      name: 'roles',
      meta: { title: '角色管理' }
    },
    {
      path: 'menus',
      component: _import('system/menus/index'),
      name: 'menus',
      meta: { title: '菜单管理' }
    }
  ]
}]

export default System
